import lireg from "@/api/axios";
// 物料批次

export default {
  /**
   * @description: 获取物料批次 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @param {Object} entity {componyId: 1} *
   * @param {String} order 排序方式 ASC DESC 默认ASC
   * @param {String} sort 自定义排序方式 'createTime'
   * @return {Array}
   */
  // 添加
  add(params) {
    return lireg.post('/v3/inventory/batchFile/add', params)
  },
  // 编号删除
  numberDel(params) {
    return lireg.get(`/v3/inventory/batchFile/delByNo?no=${params}`)
  },
  // 编号批量删除
  numberBatchDel(params) {
    return lireg.post('/v3/inventory/batchFile/delListByNo', params)
  },
  // 修改
  edit(params) {
    return lireg.post('/v3/inventory/batchFile/edit', params)
  },
  // 条件查询
  conditionQuery(params) {
    return lireg.post('/v3/inventory/batchFile/queryByCondition', params)
  },
  // 编号查询
  numberQuery(params) {
    return lireg.get(`/v3/inventory/batchFile/queryByNo?no=${params}`)
  },
  // 编号批量查询
  numberBatchQuery(params) {
    return lireg.post('/v3/inventory/batchFile/queryListByNo', params)
  },
  // 分页查询
  pageQuery(params) {
    return lireg.post('/v3/inventory/batchFile/queryPageByCondition', params)
  },
  // 查询妊检异常
  queryCheckError(params) {
    return lireg.post('/v3/inventory/batchFile/queryCheckEx', params)
  }
}
